import { createApp } from 'vue';
import ElementPlus from 'element-plus'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


import App from './App.vue';

import router from './router';

import 'element-plus/dist/index.css'

// 导入
import { createPinia } from 'pinia';

// 创建状态对象
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);

app.use(router);

// 使用对象
app.use(pinia);
app.use(ElementPlus);

app.mount('#app');
